<?php
class Zend_View_Helper_BookFetchList {
	protected $_view;
	function setView($view) { 
		$this->_view = $view; 
	} 
	
	/* type - "amazonList", "myBooks", "bookList"*/
	function bookFetchList($results,$type, $user=null, $status='available') {
		
		$this->_view->user= $user;
	   $this->_view->type= $type;
	   $this->_view->results = $results;
	   $this->_view->status= $status;
       $out = $this->_view->render('/book/BookFetchList.phtml');
       return $out;
	}
}
?>